Called when closing the dev server. Can be used to perform cleanup operations when the dev server is closed.

- **Type:**

```ts
function onCloseDevServer(callback: () => Promise<void> | void): void;
```
